import home from './home'
import classify from './classify'
import cart from './cart'
import my from './my'
import search from './search'

import login from './login'
import register from './register'
export default [
  {
    path: '/',
    redirect: '/home',
    meta: {
      requireAuth: true
    }
  },
  {
    path: '/main',
    component: () => import('../../layout'),
    children: [
      ...home,
      ...classify,
      ...cart,
      ...my,
      ...search,
      ...login,
      ...register
    ]
  }
]
